package ch.unisi.inf.projects.java.uom.gui.commands;

import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;
import javax.swing.KeyStroke;
import ch.unisi.inf.projects.java.uom.gui.AboutDialog;

public class OpenAboutDialogCommand extends Command {
	/** We are not going to serialize this class atm */
	private static final long serialVersionUID = -1L;
		
    public OpenAboutDialogCommand ()
    {
        putValue(NAME,"About");
        putValue(SHORT_DESCRIPTION,"Opens the About Dialog");
        putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_A, Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
    }
    
    public void actionPerformed(final ActionEvent ev)
    {
    	new AboutDialog();
    }
}
